package com.cqw.vo.order;

import com.cqw.order.enums.ItemStateEnum;
import com.cqw.validate.Add;
import com.cqw.validate.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-07-09 09:35
 * @Description:
 */
@Data
@NoArgsConstructor
public class ItemReq {

    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空", groups = {Update.class})
    private Long id;

    @ApiModelProperty(value = "shopId店铺id")
    private Long shopId;

    @ApiModelProperty(value = "parentId父id")
    private Long parentId;

    @ApiModelProperty(value = "seq排序")
    private Integer seq;

    @ApiModelProperty(value = "itemName分类名称")
    @NotBlank(message = "分类名称不能为空", groups = {Add.class, Update.class})
    private String itemName;

    @ApiModelProperty(value = "itemPic分类图片")
    private String itemPic;

    @ApiModelProperty(value = "itemIcon分类图标")
    private String itemIcon;

    @ApiModelProperty(value = "state默认1,1是正常状态，0是下线状态")
    private ItemStateEnum state;

    @ApiModelProperty(value = "grade分类层级")
    private Integer grade;

    @ApiModelProperty(value = "createTime创建时间")
    private Date createTime;

    @ApiModelProperty(value = "updateTime修改时间")
    private Date updateTime;


}
